package com.handpay.zztong.hp.main.model;

import android.os.Parcel;

import com.handpay.zztong.hp.bean.ResponseBean;

import java.util.List;

/**
 * Created by lyang on 2017/2/23.
 */

public class RateList extends ResponseBean{
    /**
     * items : 0
     * list : [{"rateCode":"","rateName":"","isPublicCharge":"","isDefault":""}]
     */

    private int items;
    private List<ListBean> list;

    public int getItems() {
        return items;
    }

    public void setItems(int items) {
        this.items = items;
    }

    public List<ListBean> getList() {
        return list;
    }

    public void setList(List<ListBean> list) {
        this.list = list;
    }

    public static class ListBean implements android.os.Parcelable {
        /**
         * rateCode :
         * rateName :
         * isPublicCharge :
         * isDefault :
         */

        private String rateCode;
        private String rateName;
        private String isPublicCharge;
        private String isDefault;
        private String rateAmount=null;
        public String getRateCode() {
            return rateCode;
        }

        public void setRateCode(String rateCode) {
            this.rateCode = rateCode;
        }

        public String getRateName() {
            return rateName;
        }

        public void setRateName(String rateName) {
            this.rateName = rateName;
        }

        public String getIsPublicCharge() {
            return isPublicCharge;
        }

        public void setIsPublicCharge(String isPublicCharge) {
            this.isPublicCharge = isPublicCharge;
        }

        public String getIsDefault() {
            return isDefault;
        }

        public void setIsDefault(String isDefault) {
            this.isDefault = isDefault;
        }
        public void setRateAmount(String rateAmount) {
            this.rateAmount = rateAmount;
        }

        public String getRateAmount() {
            return rateAmount;
        }
        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeString(this.rateCode);
            dest.writeString(this.rateName);
            dest.writeString(this.isPublicCharge);
            dest.writeString(this.isDefault);
            dest.writeString(this.rateAmount);
        }

        public ListBean() {
        }

        protected ListBean(Parcel in) {
            this.rateCode = in.readString();
            this.rateName = in.readString();
            this.isPublicCharge = in.readString();
            this.isDefault = in.readString();
            this.rateAmount = in.readString();
        }

        public static final Creator<ListBean> CREATOR = new Creator<ListBean>() {
            @Override
            public ListBean createFromParcel(Parcel source) {
                return new ListBean(source);
            }

            @Override
            public ListBean[] newArray(int size) {
                return new ListBean[size];
            }
        };
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        super.writeToParcel(dest, flags);
        dest.writeInt(this.items);
        dest.writeTypedList(this.list);
    }

    public RateList() {
    }

    protected RateList(Parcel in) {
        super(in);
        this.items = in.readInt();
        this.list = in.createTypedArrayList(ListBean.CREATOR);
    }

    public static final Creator<RateList> CREATOR = new Creator<RateList>() {
        @Override
        public RateList createFromParcel(Parcel source) {
            return new RateList(source);
        }

        @Override
        public RateList[] newArray(int size) {
            return new RateList[size];
        }
    };
}
